<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/layui-v2.4.5/layui-v2.4.5/layui/css/layui.css">
<link href="/home/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/home/font/iconfont.css" rel="stylesheet" />
<link href="/home/css/style.css" rel="stylesheet" />
<style type="text/css">
	.text-center td{text-align:center !important;}
	.info_content_list span{width:70px;font-size:12px;text-align:right;}

</style>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>我的主页</title>
</head>
<body>
		<div class="content_box">
			<div class="container">
				<div class="head">
					<div class="row">
						<div class="col-md-8">
							<div class="head_left">
							{if $customer.model==1}
								<div>
									<div><span class="iconfont icon-wenzhang"></span></div>
									<div>
										<span>产品</span>
										<p>{:count($products)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-wenzhang"></span></div>
									<div>
										<span>新闻</span>
										<p>{:count($news)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-msg-o"></span></div>
									<div>
										<span>留言</span>
										<p>{:count($message)}</p>
									</div>
								</div>
							</div>
							{elseif $customer.model==2}
								<div>
									<div><span class="iconfont icon-yonghu"></span></div>
									<div>
										<span>用户</span>
										<p>{:count($users)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-wenzhang"></span></div>
									<div>
										<span>报名</span>
										<p>{:count($enlist)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-wenzhang"></span></div>
									<div>
										<span>收藏</span>
										<p>{:count($collect)}</p>
									</div>
								</div>
							</div>
							{elseif $customer.model==3}
								<div>
									<div><span class="iconfont icon-yonghu"></span></div>
									<div>
										<span>用户</span>
										<p>{:count($users)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-wenzhang"></span></div>
									<div>
										<span>资讯</span>
										<p>{:count($nnews)}</p>
									</div>
								</div>
								<div>
									<div><span class="iconfont icon-msg-o"></span></div>
									<div>
										<span>留言</span>
										<p>{:count($nmessage)}</p>
									</div>
								</div>
							</div>
							{/if}
						</div>
						<div class="col-md-4">
							<div class="head_right">
								<p>关联平台</p>
								<div class="associate_platform">
									<div>
										<div><!-- <img src="/home/img/wxa.png"> -->
											{if $customer.platformwx_state==1}
											<img src="/static/img/indexwx.jpg">
											{elseif $customer.platformwx_state==2}
											<img src="/static/img/indexwxh.jpg">
											{/if}
										</div>
										<span>微信</span>
									</div>
									<div>
										<div><!-- <img src="/home/img/baidu.png"> -->
											{if $customer.platformpc_state==1}
											<img src="/static/img/indexpc.png">
											{elseif $customer.platformpc_state==2}
											<img src="/static/img/indexpch.png">
											{/if}
										</div>
										<span>PC</span>
									</div>
									<div>
										<div><!-- <img src="/home/img/zijie.png"> -->
											{if $customer.platformbd_state==1}
											<img src="/static/img/indexbd.jpg">
											{elseif $customer.platformbd_state==2}
											<img src="/static/img/indexbdh.jpg">
											{/if}
										</div>
										<span>百度</span>
									</div>
									<div>
										<div><!-- <img src="/home/img/zijie.png"> -->
											{if $customer.platformtt_state==1}
											<img src="/static/img/indextt.jpg">
											{elseif $customer.platformtt_state==2}
											<img src="/static/img/indextth.jpg">
											{/if}
										</div>
										<span>字节跳动</span>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="echarts_box">
					<div class="echarts_title">
						<p>日活</p>
					</div>
					<div style="height: 400px; margin: 0">
						<div id="container" style="height: 100%"></div>
					</div>
				</div>
				{if $customer.model==1}
				<div class="info_list_box">
					<div class="info_list">
						<div class="info_list_head">
							<p>最新产品</p>
							<a href="{:url('product/product_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $productfive as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<i>
											<img src="{$value.img}" />
										</i>
										<p>{$value.title}</p>
									</div>
									<span>{:date('Y-m-d',$value.uptime)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新新闻</p>
							<a href="{:url('news/news_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $newsfive as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<p>{$value.title}</p>
									<span>{:date('Y-m-d',$value.uptime)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新留言</p>
							<a href="{:url('message/message_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $messagefive as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<span style="text-align:unset;">{$value.name}：</span>
										<p>{$value.message}</p>
									</div>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
				</div>
				{elseif $customer.model==2}
				<div class="info_list_box">
					<div class="info_list">
						<div class="info_list_head">
							<p>用户</p>
							<a href="{:url('user/user_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $users as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<i>
											<img src="{$value.avatar}" />
										</i>
										<p>{$value.nickname}</p>
									</div>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新报名</p>
							<a href="{:url('user/enlist_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $enlist as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<p>{$value.name}</p>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新收藏</p>
							<a href="{:url('user/collect_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $collect as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<span style="text-align:unset;">{$value.nickname}：</span>
										<p>{$value.title}</p>
									</div>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
				</div>
				{elseif $customer.model==3}
				<div class="info_list_box">
					<div class="info_list">
						<div class="info_list_head">
							<p>用户</p>
							<a href="{:url('user/user_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $users as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<i>
											<img src="{$value.avatar}" />
										</i>
										<p>{$value.nickname}</p>
									</div>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新资讯</p>
							<a href="{:url('nnews/news_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $nnewsfive as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<p>{$value.title}</p>
									<span>{:date('Y-m-d',$value.uptime)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
					<div class="info_list">
						<div class="info_list_head">
							<p>最新留言</p>
							<a href="{:url('message/message_list')}">
								更多 <span class="iconfont icon-angle-double-left"></span>
							</a>
						</div>
						<ul class="info_list_content">
							{foreach $nmessagefive as $key=>$value }
							<li class="info_content_list">
								<a style="cursor:unset;">
									<div>
										<span style="text-align:unset;">{$value.nickname}：</span>
										<p>{$value.message}</p>
									</div>
									<span>{:date('Y-m-d',$value.time)}</span>
								</a>
							</li>
							{/foreach}
						</ul>
					</div>
				</div>
				{/if}
				<div class="table_box">
					<div class="table_title">
						<p>环境</p>
					</div>
					<div class="table_content">
						<table class="table table-bordered text-center">
							<tr>
								<td width="30%">IP</td>
								<td>{$_SERVER["REMOTE_ADDR"]}</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/layDate-v5.0.9/layDate-v5.0.9/laydate/laydate.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> 
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
 --><script type="text/javascript" src="/static/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="/static/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/static/lib/layui-v2.4.5/layui-v2.4.5/layui/layui.js"></script>
<script src="/home/bootstrap/js/bootstrap.min.js"></script>
<script src="/home/js/echarts.min.js"></script>
<script type="text/javascript">
	var dom = document.getElementById("container");
	var myChart = echarts.init(dom);
	var app = {};
	option = null;
	option = {
		tooltip: {
			trigger: 'axis',
			axisPointer: {
				// type: 'cross',
				label: {
					backgroundColor: '#2487ff'
				}
			}
		},
		grid: {
			left: '50px',
			right: '50px',
			bottom: '20px',
			top: '30px',
			containLabel: true
		},
		xAxis: [{
			type: 'category',
			boundaryGap: false,
			axisLine: {
				lineStyle: {
					color: '#2487ff',
					width: 2
				}
			},
		  	data:["{$seventhday}","{$sixthday}","{$frithday}","{$fouthday}","{$thirday}","{$yesterday}","{$today}"]
		}],
		yAxis: [{
			axisLabel: {
				formatter: function() {
					return "";
				}
			},
			axisTick: {
				"show": false
			},
			splitLine: {
				show: false
			},
			axisLine: {
				lineStyle: {
					color: '#2487ff',
					width: 2
				}
			}
		}],
		series: [{
			name: '',
			type: 'line',
			stack: '总量',
			smooth: true,
			showAllSymbol: true,
			symbolSize: 6,
			itemStyle: {
				normal: {
					lineStyle: {
						color: '#53a0fe'
					},
					color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
							// 0% 处的颜色   
							offset: 0,
							color: '#77b4fe'
						},
						{
							// 100% 处的颜色
							offset: 1,
							color: '#fff'
						}
					], false)
				},
				color: "#2487ff",
				borderColor: "#ffffff",
				borderWidth: 3
			},
			label: {
				normal: {
					show: true,
					position: 'top'
				}
			},
			areaStyle: {
				normal: {}
			},
			data: ["{$seventhdaynum}","{$sixthdaynum}","{$frithdaynum}","{$fouthdaynum}","{$thirdaynum}","{$yesterdaynum}", "{$todaynum}"]
		}]
	};;
	if (option && typeof option === "object") {
		myChart.setOption(option, true);
	}
</script>
</body>
</html>